/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package scribd;

import org.jvnet.substance.api.ComponentState;
import org.jvnet.substance.api.SubstanceColorScheme;
import org.jvnet.substance.api.SubstanceColorSchemeBundle;

import org.jvnet.substance.colorscheme.BrownColorScheme;
import org.jvnet.substance.colorscheme.CremeColorScheme;
import org.jvnet.substance.painter.decoration.DecorationAreaType;
import org.jvnet.substance.painter.decoration.Glass3DDecorationPainter;
import org.jvnet.substance.painter.gradient.GlassGradientPainter;
import org.jvnet.substance.shaper.ClassicButtonShaper;
import org.jvnet.substance.skin.OfficeSilver2007Skin;

/**
 * <code>Nebula Brick Wall</code> skin. This class is experimental.
 *
 * @author Kirill Grouchnikov
 * @since version 4.0
 */
public class ScribdSkin extends OfficeSilver2007Skin {

    /**
     * Display name for <code>this</code> skin.
     */
    public static String NAME = "Scribd Skin";

    /**
     * Creates a new <code>Nebula Brick Wall</code> skin.
     */
    public ScribdSkin() {
        super();

//        SubstanceColorScheme activeScheme = SubstanceColorSchemeUtilities
//				.getColorScheme(OfficeSilver2007Skin.class
//						.getClassLoader()
//						.getResource(
//								"org/jvnet/substance/skin/office-silver-active.colorscheme"));
//		SubstanceColorScheme defaultScheme = SubstanceColorSchemeUtilities
//				.getColorScheme(OfficeSilver2007Skin.class
//						.getClassLoader()
//						.getResource(
//								"org/jvnet/substance/skin/office-silver-default.colorscheme"));
        SubstanceColorScheme activeScheme = new BrownColorScheme();
        SubstanceColorScheme defaultScheme = new CremeColorScheme();

		SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
				activeScheme, defaultScheme, defaultScheme);
		defaultSchemeBundle.registerColorScheme(defaultScheme, 0.5f,
				ComponentState.DISABLED_UNSELECTED);
		defaultSchemeBundle.registerColorScheme(activeScheme, 0.5f,
				ComponentState.DISABLED_SELECTED);


        this.setPaintingDropShadows(DecorationAreaType.TOOLBAR);
        this.buttonShaper = new ClassicButtonShaper();
//        this.buttonShaper = new StandardButtonShaper();

//        this.gradientPainter = new SubduedGradientPainter();
        this.gradientPainter = new GlassGradientPainter();
//        this.watermark = new SubstancePlanktonWatermark();

//        this.watermark = new SubstanceImageWatermark("icon/texture-wood.png");
//        this.watermarkScheme = defaultScheme.shade(0.2);

//        MarbleNoiseDecorationPainter decorPainter = new MarbleNoiseDecorationPainter();
        Glass3DDecorationPainter decorPainter = new Glass3DDecorationPainter();
        
//        decorPainter.setPaintingSeparators(true);
//        decorPainter.setBaseDecorationPainter(new ArcDecorationPainter());
//        decorPainter.setBaseDecorationPainter(new Glass3DDecorationPainter());
//        decorPainter.setTextureAlpha(0.1f);

        this.decorationPainter = decorPainter;
        
    }

    /*
     * (non-Javadoc)
     *
     * @see org.jvnet.substance.skin.SubstanceSkin#getDisplayName()
     */
    @Override
    public String getDisplayName() {
        return NAME;
    }
}

